gtkstylecontext: guard against gtk_css_widget_node_get_widget() returning NULL in...
authorChristoph Reiter <creiter@src.gnome.org>
Mon, 19 Mar 2018 17:21:25 +0000 (18:21 +0100)
committerChristoph Reiter <creiter@src.gnome.org>
Tue, 20 Mar 2018 15:02:51 +0000 (16:02 +0100)
commitf440c48deab698057800d8e74de14c6589499df0
tree360750855faaca88754505f09d0bf922ef65155b
parent1d26879fa5ad3079e519850268e31eab06fbe265
gtkstylecontext: guard against gtk_css_widget_node_get_widget() returning NULL in more places

When the widget gets finalized it clears the widgetnode and gtk_css_widget_node_get_widget
returns NULL. Guard against gtk_css_widget_node_get_widget() returning NULL like in other
places.

See https://gitlab.gnome.org/GNOME/pygobject/issues/28#note_82862
gtk/gtkstylecontext.c